package com.block.datapush.service.apipush.utils;

import cn.hutool.core.util.StrUtil;
import com.block.common.enums.BaseTypeInfoEnum;

public class XieWanGaoUtil {



    public static String getshouru(String shouru) {
        if (StrUtil.equals(shouru, BaseTypeInfoEnum.Shouru.sr001.getValue())){
            return "5000";
        }else if (StrUtil.equals(shouru, BaseTypeInfoEnum.Shouru.sr002.getValue())){
            return "10000";
        }else if (StrUtil.equals(shouru, BaseTypeInfoEnum.Shouru.sr003.getValue())){
            return "15000";
        }
        return "20000";
    }


    public static String getloan(String loan) {
        if (StrUtil.equals(loan, BaseTypeInfoEnum.LoanAmount.la001.getValue())){
            return "3";
        }else if (StrUtil.equals(loan, BaseTypeInfoEnum.LoanAmount.la002.getValue())){
            return "5";
        }else if (StrUtil.equals(loan, BaseTypeInfoEnum.LoanAmount.la003.getValue())){
            return "10";
        }
        return "20";
    }



    public static String getSheBao(String socialInsurance) {
        if (StrUtil.equals(socialInsurance, BaseTypeInfoEnum.Shebao.sb001.getValue())){
            return "0";
        }
        return "1";
    }


    public static String getInsurance(String loanAmount) {
        if (StrUtil.equals(loanAmount, BaseTypeInfoEnum.Baoxian.bx001.getValue())){
            return "0";
        }
        return "1";
    }



}
